package com.zdp.filesync.commonline.service;

import java.util.function.Function;

/**
 * 命令行执行
 */
public interface CommonLine {

    String execOrigin(String cmd);

    String execOrigin(String cmd, String dir);

    boolean execHandleResult(String cmd, Function<String,Boolean> function);

    boolean execHandleResult(String cmd,String dir,Function<String,Boolean> function);



}
